﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="module-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.module_list" MasterPageFile="~/_console/_console.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
    <ul>
        <li><a href="theme-list.aspx">主题列表 </a></li>
        <li><a href="module-list.aspx">模块列表 </a></li>
        <li><a href="application-list.aspx">应用程序列表 </a></li>
        <li><a href="org-list.aspx">组织机构列表 </a></li>
        <li><a href="role-list.aspx">角色列表 </a></li>
        <li><a href="user-list.aspx">用户列表 </a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
            模块列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkUpload" runat="server" NavigateUrl="~/_console/core/module-upload.aspx">上传模块</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
<table style="width:100%;">
<tr>
    <td style="vertical-align:top">
        <asp:Repeater ID="_ctlList" runat="server">
            <HeaderTemplate>
                <table style="width: 100%" border="1">
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Caption
                        </th>
                        <th>
                            Name
                        </th>
                        <th>
                            Package
                        </th>
                        <th>
                            Version
                        </th>
                        <th>
                            Type
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <span id="_ctlLabel" runat="server" visible='<%# IsSelected(Eval("Id")) %>'>已选择</span>
                        <a id="_ctlLink" href='<%# Eval("Id","?id={0}") %>' runat="server" visible='<%# !IsSelected(Eval("Id")) %>'>
                            选择</a>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Package") %>
                    </td>
                    <td>
                        <%# Eval("Version") %>
                    </td>
                    <td>
                        <%# Eval("Type") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </td>
    <td style="width:200px; vertical-align:top">
        <h3>视图列表</h3>
        <asp:Repeater ID="_ctlListView" runat="server">
            <HeaderTemplate>
                <ul style="width: 100%;">
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <b>
                        <%# Eval("Caption") %>
                    </b><br />
                    <em>
                        <%# Eval("Name") %>
                    </em>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </td>
</tr>
</table>
</asp:Content>
